<template>
  <div>
    <input type="file" @change='changeFile' />
  </div>
</template>

<script>
export default {
  name: 'Upload',
  data () {
    return {
      // 文件列表
      fileList: [
        {
          name: 'food.jpeg',
        }
      ]
    }
  },
  methods: {
    changeFile (e) {
      console.log(e.target.files[0])
    }
  }
}
</script>

<style lang="less" scoped>

</style>
